package com.qfjy.mapper;

import com.qfjy.entity.po.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    /**
     * TODO 查找有效的角色信息
     */
    @Select("select * from role where status=1 order by id")
    public List<Role> selectListByStatus();
}